<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .outerDiv{
            width: 800px;
            height: 300px;
            border: 1px solid green;
            background-color: azure;
            margin:0px auto;
        } 
        .innerDiv {
            width: 100px;
            height: 100px;
            border: 1px solid blue;
            margin-top: 10px;
            margin-right: 20px;
            margin-bottom: 30px;
            margin-left: 40px;
        }
        .d1{
            background-color: brown;
            padding: 30px;
        }
    </style>
</head>
<body>
    <div class = "outerDiv">
        <div class = "innerDiv d1">框1</div>
    </div>
</body>
</html>